package com.labot.model;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.AccessType;

/**
 * This class represents the basic "user" object in AppFuse that allows for authentication
 * and user management.  It implements Acegi Security's UserDetails interface.
 *
 * @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
 *         Updated by Dan Kibler (dan@getrolling.com)
 *         Extended to implement Acegi UserDetails interface
 *         by David Carter david@carter.net
 */

@Entity
@Table(name="app_facturas")
@AccessType("field")
public class Factura extends BaseObject implements Serializable {

    private static final long serialVersionUID = -1;
    
    @Column(name="fecha")
    private Date fecha;

    @Column(name="importe")
    private Integer importe;
    
    @Column(name="protocolodesde")
    private Integer puntosguardados;
    
   
    
    public Factura() {
    }
    
    

	public Date getFecha() {
		return fecha;
	}



	public void setFecha(Date fecha) {
		this.fecha = fecha;
	}




	public Integer getImporte() {
		return importe;
	}



	public void setImporte(Integer importe) {
		this.importe = importe;
	}



	public Integer getPuntosguardados() {
		return puntosguardados;
	}



	public void setPuntosguardados(Integer puntosguardados) {
		this.puntosguardados = puntosguardados;
	}



	@Override
	public String toString() {
		return "id: " + this.getId();
	}

	@Override
	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}
	
    
}